export const safeJsonStringInBrowser = (str: any, removed: any) => str
      .replace(/\u2028/g, removed ? "" : "\\u2028")
      .replace(/\u2029/g, removed ? "" : "\\u2029")
      .replace(/\u000A/gi, removed ? "" : "\\n")
      .replace(/\u000D/gi, removed ? "" : "\\r")